package cn.com.nes.mybatis.agent.ope.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 属性参数值表
 * </p>
 *
 * @author nes
 * @since 2023-04-19
 */
@TableName("is_dict_value_info")
public class IsDictValueInfo extends Model<IsDictValueInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 字典值id
     */
    @TableField("value_id")
    private String valueId;
    /**
     * 值
     */
    @TableField("dic_no")
    private String dicNo;
    /**
     * 类型id
     */
    @TableField("type_id")
    private String typeId;
    /**
     * 名称
     */
    private String title;
    /**
     * 备注
     */
    private String bz;
    /**
     * 是否停用:0:不停用;1:停用
     */
    private Integer sfty;
    /**
     * 逻辑删除  1 表示删除，0 表示未删除
     */
    private Integer sfsc;
    /**
     * 创建人
     */
    @TableField("cr_oper")
    private String crOper;
    /**
     * 创建时间
     */
    private Date cjsj;
    /**
     * 修改人
     */
    @TableField("up_oper")
    private String upOper;
    /**
     * 修改时间
     */
    private Date xgsj;
    /**
     * 数据版本号  当前时间戳
     */
    private Long version;
    /**
     * 数据来源
     */
    private String sjly;
    /**
     * 父id
     */
    @TableField("p_value_id")
    private String pValueId;
    /**
     * 厂商id
     */
    @TableField("manufacture_id")
    private String manufactureId;
    /**
     * 是否厂商模板 0-否;1-是
     */
    @TableField("manufacture_template")
    private Integer manufactureTemplate;
    /**
     * 是否为默认值 0-否;1-是
     */
    @TableField("is_default")
    private Integer isDefault;
    private Integer seq;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getValueId() {
        return valueId;
    }

    public void setValueId(String valueId) {
        this.valueId = valueId;
    }

    public String getDicNo() {
        return dicNo;
    }

    public void setDicNo(String dicNo) {
        this.dicNo = dicNo;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public Integer getSfty() {
        return sfty;
    }

    public void setSfty(Integer sfty) {
        this.sfty = sfty;
    }

    public Integer getSfsc() {
        return sfsc;
    }

    public void setSfsc(Integer sfsc) {
        this.sfsc = sfsc;
    }

    public String getCrOper() {
        return crOper;
    }

    public void setCrOper(String crOper) {
        this.crOper = crOper;
    }

    public Date getCjsj() {
        return cjsj;
    }

    public void setCjsj(Date cjsj) {
        this.cjsj = cjsj;
    }

    public String getUpOper() {
        return upOper;
    }

    public void setUpOper(String upOper) {
        this.upOper = upOper;
    }

    public Date getXgsj() {
        return xgsj;
    }

    public void setXgsj(Date xgsj) {
        this.xgsj = xgsj;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public String getSjly() {
        return sjly;
    }

    public void setSjly(String sjly) {
        this.sjly = sjly;
    }

    public String getpValueId() {
        return pValueId;
    }

    public void setpValueId(String pValueId) {
        this.pValueId = pValueId;
    }

    public String getManufactureId() {
        return manufactureId;
    }

    public void setManufactureId(String manufactureId) {
        this.manufactureId = manufactureId;
    }

    public Integer getManufactureTemplate() {
        return manufactureTemplate;
    }

    public void setManufactureTemplate(Integer manufactureTemplate) {
        this.manufactureTemplate = manufactureTemplate;
    }

    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public static final String ID = "id";

    public static final String VALUE_ID = "value_id";

    public static final String DIC_NO = "dic_no";

    public static final String TYPE_ID = "type_id";

    public static final String TITLE = "title";

    public static final String BZ = "bz";

    public static final String SFTY = "sfty";

    public static final String SFSC = "sfsc";

    public static final String CR_OPER = "cr_oper";

    public static final String CJSJ = "cjsj";

    public static final String UP_OPER = "up_oper";

    public static final String XGSJ = "xgsj";

    public static final String VERSION = "version";

    public static final String SJLY = "sjly";

    public static final String P_VALUE_ID = "p_value_id";

    public static final String MANUFACTURE_ID = "manufacture_id";

    public static final String MANUFACTURE_TEMPLATE = "manufacture_template";

    public static final String IS_DEFAULT = "is_default";

    public static final String SEQ = "seq";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "IsDictValueInfo{" +
        ", id=" + id +
        ", valueId=" + valueId +
        ", dicNo=" + dicNo +
        ", typeId=" + typeId +
        ", title=" + title +
        ", bz=" + bz +
        ", sfty=" + sfty +
        ", sfsc=" + sfsc +
        ", crOper=" + crOper +
        ", cjsj=" + cjsj +
        ", upOper=" + upOper +
        ", xgsj=" + xgsj +
        ", version=" + version +
        ", sjly=" + sjly +
        ", pValueId=" + pValueId +
        ", manufactureId=" + manufactureId +
        ", manufactureTemplate=" + manufactureTemplate +
        ", isDefault=" + isDefault +
        ", seq=" + seq +
        "}";
    }
}
